import requests


headers = {
    "authority": "www.douyin.com",
    "accept": "application/json, text/plain, */*",
    "accept-language": "zh-CN,zh;q=0.9",
    "cache-control": "no-cache",
    "pragma": "no-cache",
    "referer": "https://www.douyin.com/user/MS4wLjABAAAAXcusadpsns9kBnsCcbvD8-Xuv2pFqH4X2rs-P2fnw7U",
    "sec-ch-ua": "\"Not.A/Brand\";v=\"8\", \"Chromium\";v=\"114\", \"Google Chrome\";v=\"114\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
}
cookies = {
    "ttwid": "1%7Cu2j6YCLJl9gDKtR96gDlC0Mypah7tprMXaBubcpqzbY%7C1685465274%7C052afa2ff4753d4aa3e54fba58b4d78f70b847b37ca4155f70142060f7f5aa98",
    "xgplayer_user_id": "810145109738",
    "__ac_signature": "_02B4Z6wo00f019D8WIwAAIDDUP6izBEC-U.Q3FwAAJCSQMJHGkCTM7.q70hJRDAf7fY55lPmCavmdNA9KEp2CZbj5rcvsLgKwlm.9Gl4nax0CQ1Y50D9r15pB.qqCASac2jo2SbbUFCynKH4a6",
    "passport_csrf_token": "f077dde84725bf4765003fe91007ce9e",
    "douyin.com": "",
    "device_web_cpu_core": "16",
    "device_web_memory_size": "8",
    "architecture": "amd64",
    "strategyABtestKey": "%221695481976.771%22",
    "stream_recommend_feed_params": "%22%7B%5C%22cookie_enabled%5C%22%3Atrue%2C%5C%22screen_width%5C%22%3A1707%2C%5C%22screen_height%5C%22%3A1067%2C%5C%22browser_online%5C%22%3Atrue%2C%5C%22cpu_core_num%5C%22%3A16%2C%5C%22device_memory%5C%22%3A8%2C%5C%22downlink%5C%22%3A10%2C%5C%22effective_type%5C%22%3A%5C%224g%5C%22%2C%5C%22round_trip_time%5C%22%3A50%7D%22",
    "s_v_web_id": "verify_lmw66y3s_PnSVrX5D_iX4X_4Tk8_8O6O_SKML7n8gheCg",
    "FORCE_LOGIN": "%7B%22videoConsumedRemainSeconds%22%3A180%7D",
    "csrf_session_id": "f7c6a2f3869306a75265cdf426c02ce1",
    "bd_ticket_guard_client_data": "eyJiZC10aWNrZXQtZ3VhcmQtdmVyc2lvbiI6MiwiYmQtdGlja2V0LWd1YXJkLWl0ZXJhdGlvbi12ZXJzaW9uIjoxLCJiZC10aWNrZXQtZ3VhcmQtcmVlLXB1YmxpYy1rZXkiOiJCUG5GNjRYMExNRUFFMjIxRjNZVll1NTVqRVRhWDcraVkwNEVpM2FZelgzcEREQ3ZQVHYrUld6WE1aSmw5ZXdQUGtWeVQ2S1ZOYTM0bTQxZURmOEh6Nmc9IiwiYmQtdGlja2V0LWd1YXJkLXdlYi12ZXJzaW9uIjoxfQ==",
    "odin_tt": "8d4cc41c90a3d727e6c2f5b5a93e60e3c12d30be571f198085c91ed62e90b2c35f48e30fd50e391f93868c4e7974be11251a2d7267bc0b87fa37153bd9186eda256f8b27c85bb390aef86ef5742a61ca",
    "xgplayer_device_id": "22109119353",
    "webcast_leading_last_show_time": "1695481994834",
    "webcast_leading_total_show_times": "1",
    "webcast_local_quality": "sd",
    "download_guide": "%223%2F20230923%2F0%22",
    "pwa2": "%221%7C0%7C2%7C0%22",
    "VIDEO_FILTER_MEMO_SELECT": "%7B%22expireTime%22%3A1696087315884%2C%22type%22%3A1%7D",
    "volume_info": "%7B%22isUserMute%22%3Afalse%2C%22isMute%22%3Afalse%2C%22volume%22%3A0.5%7D",
    "msToken": "vmn-f7CeRRaqzBNPQsqC26Tn47LnstLsV7OG_3-GMZPLd0d58yCUV-Do9WiGQ4pi2Xlybd84ZFHegKtQ69KJlxCwOQhn7OrvudvGR3TpAAe9G6O8jHH5I04bJXEng9I=",
    "tt_scid": "8i7M12L00Nx1UnpH.yTI61Nu34ni1z8TigRWixUZHKCFnRCy0a9tiDYA6UvruCP97d1d",
    "IsDouyinActive": "true",
    "home_can_add_dy_2_desktop": "%221%22"
}
url = "https://www.douyin.com/aweme/v1/web/aweme/post/"
params = {
    "device_platform": "webapp",
    "aid": "6383",
    "channel": "channel_pc_web",
    "sec_user_id": "MS4wLjABAAAAXcusadpsns9kBnsCcbvD8-Xuv2pFqH4X2rs-P2fnw7U",
    "max_cursor": "0",
    "locate_query": "false",
    "show_live_replay_strategy": "1",
    "need_time_list": "1",
    "time_list_query": "0",
    "whale_cut_token": "",
    "cut_version": "1",
    "count": "18",
    "publish_video_strategy_type": "2",
    "pc_client_type": "1",
    "version_code": "170400",
    "version_name": "17.4.0",
    "cookie_enabled": "true",
    "screen_width": "1707",
    "screen_height": "1067",
    "browser_language": "zh-CN",
    "browser_platform": "Win32",
    "browser_name": "Chrome",
    "browser_version": "114.0.0.0",
    "browser_online": "true",
    "engine_name": "Blink",
    "engine_version": "114.0.0.0",
    "os_name": "Windows",
    "os_version": "10",
    "cpu_core_num": "16",
    "device_memory": "8",
    "platform": "PC",
    "downlink": "10",
    "effective_type": "4g",
    "round_trip_time": "50",
    "webid": "7239018121435924020",
    "msToken": "vmn-f7CeRRaqzBNPQsqC26Tn47LnstLsV7OG_3-GMZPLd0d58yCUV-Do9WiGQ4pi2Xlybd84ZFHegKtQ69KJlxCwOQhn7OrvudvGR3TpAAe9G6O8jHH5I04bJXEng9I=",
    "X-Bogus": "DFSzswVO7oiANJ8btPF4re9WX7n4"
}
response = requests.get(url, headers=headers, cookies=cookies, params=params)

print(response.text)
print(response)